﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PlanProduccionEdit.aspx.cs"
    Inherits="WebAppPlanProduccion.App.PlanProduccionEdit" %>

<%@ Register Assembly="Web.Framework" Namespace="Web.Framework.Controls" TagPrefix="planprod" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="/Styles/GridStyle.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/PlanProduccion.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/PlanProdCtrl.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Misc/SearchProduct.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/DirtyCheck.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/ajaxupload.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="/Scripts/PP/PresupuestoProduccion.js" type="text/javascript"></script>
    <script src="/Scripts/jqueryWCF.js" type="text/javascript"></script>
    <script src="/Scripts/json2.min.js" type="text/javascript"></script>
    <script src="/Scripts/PlanProdCtrl.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Detalle de Plan de Producci&oacute;n
    </h2>
    <div class="editionContainerFilter">
        <p>
            <span class="title">Id:</span>
            <asp:TextBox ID="txtPlanProduccionId" runat="server" CssClass="inputs readonly" ReadOnly="true"
                ClientIDMode="Static"></asp:TextBox>
        </p>
        <p>
            <span class="title secondColumn">Total Plan:</span>
            <asp:TextBox ID="txtTotalPlan" ClientIDMode="Static" runat="server" CssClass="inputs readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
         <p>
            <span class="title2 secondColumn">Usuario Creador:</span>
            <asp:TextBox ID="txtAuditUserNameCreacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>  
        <div class="clear">
        </div>
        <p>
            <span class="title">Temporada:</span>
            <asp:TextBox ID="txtTemporada" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <p>
            <asp:HyperLink ID="lnkVerPresupuestoProduccion" runat="server" ClientIDMode="Static" >Ver Presupuesto</asp:HyperLink>
        </p>
          <p>
            <span class="title2 secondColumn">Fecha Creaci&oacute;n:</span>
            <asp:TextBox ID="txtAuditFechaCreacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>  
        <div class="clear">
        </div>
        <p>
            <span class="title">Destino:</span>
            <asp:TextBox ID="txtDestino" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
         <p>
            <span class="title2 thirdColumn">Usuario Modificador:</span>
            <asp:TextBox ID="txtAuditUserNameModificacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title">Proveedor:</span>
            <asp:TextBox ID="txtProveedor" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
         <p>
            <span class="title2 thirdColumn">Fecha Modificaci&oacute;n:</span>
            <asp:TextBox ID="txtAuditFechaModificacion" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
    </div>
    <h2>
        Art&iacute;culos
    </h2>
    <asp:Panel ID="pnlResults" CssClass="editionContainerForGrid" runat="server">
        <planprod:PlanProduccionCtrl ID="PlanProduccionCtrl1" runat="server" DeleteImageSrc="/Images/eliminar.png"
            ShowDeleteButton="false" ClientIDMode="Static" InputsReadOnly="true" ShowCommandButton="true"
            ShowCommandImgSrc="/Images/excel.png" />
    </asp:Panel>
    <div class="buttons">
        <asp:LinkButton ID="lnkCargarDesvioMasivo" runat="server" ClientIDMode="Static" CssClass="agregarNuevo"
            OnClick="lnkCargarDesvioMasivo_Click" CausesValidation="false">Cargar Desv&iacute;os Masivos</asp:LinkButton>
        <asp:LinkButton ID="lnkVerPendientes" runat="server" ClientIDMode="Static" CssClass="agregarNuevo"
            OnClick="lnkVerPendientes_Click" CausesValidation="false">Ver Desv&iacute;os Pendientes</asp:LinkButton>
        <asp:LinkButton ID="lnkCancelar" runat="server" ClientIDMode="Static" CausesValidation="false" 
            CssClass="agregarNuevo" OnClick="lnkCancelar_Click">Volver</asp:LinkButton>
    </div>
    <div class="clear">
    </div>
    <script type='text/javascript'>

        $(document).ready(function () {
            var gridCtrl = $('#PlanProduccionCtrl1').get(0);
            gridCtrl.planProdCtrl = new PlanProdCtrl(gridCtrl);
            gridCtrl.planProdCtrl.Initialize();
            window.planProdCtrl = gridCtrl.planProdCtrl;

            registerHandleForActualizarTotal();

//            document.DirtyCheck = new DirtyCheck();
//            document.DirtyCheck.loadControlState(); 

        });
    </script>
</asp:Content>
